package game;

import java.awt.Point;
import java.awt.geom.Point2D;

public class Shoot extends AnimatedSprite
{
	
	private static final long serialVersionUID = 1L;
	
	private Point2D speed;
	float rotation;
	public float dano;
	

	public Shoot(Point position, Point size, Point2D speed, int direction, float dano) 
	{
		super(29, position, size, new Point(0,0), new Point(10,10),  new Point(1, 1), 10f, true);
		this.speed = speed;
		animationType.y = direction;
		this.dano = dano;
	}
	
	public Shoot(Point position, Point size, Point2D speed, int direction, float dano, boolean enemie) 
	{
		super(33, position, size, new Point(0,0), new Point(10,10),  new Point(1, 1), 10f, false);
		this.speed = speed;
		animationType.y = direction;
		this.dano = dano;
	}
	
	public void update()
	{
		super.addPosition(speed);
		
		super.Update();
		
	}
}
